class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.column :username,   :string
      t.column :password,   :string
      t.column :firstname,  :string
      t.column :lastname,   :string
      t.column :email,      :string
      t.column :role,       :string, :default => 'user'
      t.column :created_at, :datetime
      t.column :updated_at, :datetime
      t.column :deleted_at, :datetime
    end
  end

  def self.down
    drop_table :users
  end
end
